package com.xiyou.luckdraw.api.dto.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName: OrderInfoDto
 * @Description:
 * @author: limingxing
 * @Date: 2019-10-14 16:24
 */
@Data
@ApiModel(value = "订单信息dto")
public class OrderInfoDto {

    @ApiModelProperty(value="订单号")
    private Long orderNo;
    @ApiModelProperty(value="用户id")
    private Long userId;
    @ApiModelProperty(value="昵称")
    private String nickName;
    @ApiModelProperty(value="用户头像")
    private String photo;
    @ApiModelProperty(value="商品id")
    private Long productId;
    @ApiModelProperty(value="商品名称")
    private String productName;
    @ApiModelProperty(value="支付成功时间")
    private Date payTime;
    @ApiModelProperty(value="订单总金额，单位分")
    private BigDecimal price;
    @ApiModelProperty(value="1:待支付,2：已支付，3： 支付失败，4 已退款，5 退款失败")
    private Integer orderStatus;
    @ApiModelProperty(value="订单备注")
    private String remark;
    @ApiModelProperty(value="创建时间")
    private Date createTime;
    @ApiModelProperty(value="修改时间")
    private Date modifyTime;


    public String getOrderNo() {
        return String.valueOf(orderNo);
    }

}
